package com.gary.security.model;
import java.util.HashSet;
import java.util.Set;

import com.gary.core.tree.LongTreeNode;

public class MenuInfo extends LongTreeNode<MenuInfo> {
    /** * serial. */
    static final long serialVersionUID = 0L;

    /** * parent. */
    private MenuInfo parent;

    /** * name. */
    private String name;

    /** * theSort. */
    private Integer theSort;

    /** * qtip. */
    private String qtip;

    /** * iconCls. */
    private String iconCls;

    /** * forward. */
    private String url;

    /** * descn. */
    private String descn;

    /** * menus. */
    private Set<MenuInfo> children = new HashSet<MenuInfo>(0);

    /** * roles. */
    private Set<RoleInfo> roles = new HashSet<RoleInfo>(0);

    /** * checked. */
    private boolean checked = false;

    /** * 构造方法. */
    public MenuInfo() {
    }

    public MenuInfo getParent() {
        return parent;
    }

    /** * @param parent Menu. */
    public void setParent(MenuInfo parent) {
        this.parent = parent;
    }

    /** * @return name. */
    public String getName() {
        return name;
    }

    /** * @param name name. */
    public void setName(String name) {
        this.name = name;
    }

    /** * @return theSort. */
    public Integer getTheSort() {
        return theSort;
    }

    /** * @param theSort Integer. */
    public void setTheSort(Integer theSort) {
        this.theSort = theSort;
    }

    /** * @return qtip. */
    public String getQtip() {
        return qtip;
    }

    /** * @param qtip String. */
    public void setQtip(String qtip) {
        this.qtip = qtip;
    }

    /** * @return iconCls. */
    public String getIconCls() {
        return iconCls;
    }

    /** * @param iconCls icon. */
    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    /** * @return url. */
    public String getUrl() {
        return url;
    }

    /** * @param url String. */
    public void setUrl(String url) {
        this.url = url;
    }

    /** * @return descn. */
    public String getDescn() {
        return descn;
    }

    /** * @param descn descn. */
    public void setDescn(String descn) {
        this.descn = descn;
    }

    /** * @return children. */
    public Set<MenuInfo> getChildren() {
        return children;
    }

    /** * @param children Set. */
    public void setChildren(Set<MenuInfo> children) {
        this.children = children;
    }

    /** * @return roles. */
    public Set<RoleInfo> getRoles() {
        return roles;
    }

    /** * @param roles roles. */
    public void setRoles(Set<RoleInfo> roles) {
        this.roles = roles;
    }

    /** * @return isChecked. */
    public boolean isChecked() {
        return checked;
    }

    /** * @param checked boolean. */
    public void setChecked(boolean checked) {
        this.checked = checked;
    }
}
